package com.designpatterns.strategy.user;

import com.designpatterns.strategy.duck.interfaces.FlyBehaviour;
import com.designpatterns.strategy.duck.interfaces.QuackBehaviour;

public class Duck {
	private FlyBehaviour flyBehaviour;
	private QuackBehaviour quackBehaviour;
	
	public void performQuack() {
		quackBehaviour.quack();
	}
	
	public void performFly() {
		flyBehaviour.fly();
	}
	
	public void display() {
		System.out.println("I am Duck");
	}

	public FlyBehaviour getFlyBehaviour() {
		return flyBehaviour;
	}

	public void setFlyBehaviour(FlyBehaviour flyBehaviour) {
		this.flyBehaviour = flyBehaviour;
	}

	public QuackBehaviour getQuackBehaviour() {
		return quackBehaviour;
	}

	public void setQuackBehaviour(QuackBehaviour quackBehaviour) {
		this.quackBehaviour = quackBehaviour;
	}
	
	
}
